	.file	1 "main.c"
	.section .mdebug.abi32
	.previous
	.abicalls
	.rdata
	.align	2
$LC0:
	.ascii	"i:o:brVh?\000"
	.data
	.align	2
	.type	optString, @object
	.size	optString, 4
optString:
	.word	$LC0
	.rdata
	.align	2
$LC1:
	.ascii	"binary\000"
	.align	2
$LC2:
	.ascii	"reverse\000"
	.align	2
$LC3:
	.ascii	"input\000"
	.align	2
$LC4:
	.ascii	"output\000"
	.align	2
$LC5:
	.ascii	"version\000"
	.align	2
$LC6:
	.ascii	"help\000"
	.data
	.align	2
	.type	longOpts, @object
	.size	longOpts, 112
longOpts:
	.word	$LC1
	.word	0
	.word	0
	.word	98
	.word	$LC2
	.word	0
	.word	0
	.word	114
	.word	$LC3
	.word	1
	.word	0
	.word	105
	.word	$LC4
	.word	1
	.word	0
	.word	111
	.word	$LC5
	.word	0
	.word	0
	.word	86
	.word	$LC6
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.rdata
	.align	2
$LC7:
	.ascii	"Usage:\n"
	.ascii	"  ./BitTranslation -h\n"
	.ascii	"  ./BitTranslation -V\n"
	.ascii	"  ./BitTranslation [options]\n"
	.ascii	"Options:\n"
	.ascii	"  -h, --help    Print this information.\n"
	.ascii	"  -V, --version Print version and quit.\n"
	.ascii	"  -b, --binary  Generate an output file consisting of 1'"
	.ascii	"s and 0's.\n"
	.ascii	"  -r, --reverse Generate an output file using an encoded"
	.ascii	" file as input (default mode).\n"
	.ascii	"  -i, --input   Path to input file (defaults to stdin).\n"
	.ascii	"  -o, --output  Path to output file (defaults to stdout)"
	.ascii	".\n\n"
	.ascii	"Examples:\n"
	.ascii	"  ./BitTranslation\n"
	.ascii	"  ./BitTranslation -i - -b -o output.01\n"
	.ascii	"  ./BitTranslation --reverse --input bits.01 -o decoded_"
	.ascii	"text.txt\n"
	.ascii	"  ./BitTranslation --version\n\000"
	.text
	.align	2
	.globl	display_usage
	.ent	display_usage
display_usage:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC7
	la	$t9,puts
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
	.end	display_usage
	.size	display_usage, .-display_usage
	.rdata
	.align	2
$LC8:
	.ascii	"Bits Encoding - Version 1.0\000"
	.text
	.align	2
	.globl	display_version
	.ent	display_version
display_version:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	la	$a0,$LC8
	la	$t9,puts
	jal	$ra,$t9
	move	$a0,$zero
	la	$t9,exit
	jal	$ra,$t9
	.end	display_version
	.size	display_version, .-display_version
	.rdata
	.align	2
$LC9:
	.ascii	"INPUT_ERROR: An error occurred when reading the input fi"
	.ascii	"le.\n\000"
	.text
	.align	2
	.globl	check_reading_error
	.ent	check_reading_error
check_reading_error:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	sw	$a0,40($fp)
	lw	$v0,40($fp)
	lhu	$v0,12($v0)
	srl	$v0,$v0,6
	andi	$v0,$v0,0x1
	beq	$v0,$zero,$L19
	la	$a0,__sF+176
	la	$a1,$LC9
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L19:
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	check_reading_error
	.size	check_reading_error, .-check_reading_error
	.rdata
	.align	2
$LC10:
	.ascii	"WARNING: No input file specified. Reading from stdin...\n"
	.ascii	"\000"
	.align	2
$LC11:
	.ascii	"r\000"
	.align	2
$LC12:
	.ascii	"INPUT_ERROR: Failed to open input file '%s' for reading."
	.ascii	"\n\000"
	.align	2
$LC13:
	.ascii	"WARNING: No output file specified. Writing in stdout...\n"
	.ascii	"\000"
	.align	2
$LC14:
	.ascii	"WARNING: Output file already exists. It will be overwrit"
	.ascii	"ten!\n\000"
	.align	2
$LC15:
	.ascii	"w\000"
	.align	2
$LC16:
	.ascii	"OUTPUT_ERROR: Failed to open file %s for writing\n\000"
	.text
	.align	2
	.globl	validate_arguments
	.ent	validate_arguments
validate_arguments:
	.frame	$fp,56,$ra		# vars= 16, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,56
	.cprestore 16
	sw	$ra,48($sp)
	sw	$fp,44($sp)
	sw	$gp,40($sp)
	move	$fp,$sp
	lbu	$v0,globalArgs+2
	beq	$v0,$zero,$L22
	la	$a0,__sF+176
	la	$a1,$LC10
	la	$t9,fprintf
	jal	$ra,$t9
	sw	$zero,globalArgs+4
	b	$L23
$L22:
	lw	$a0,globalArgs+4
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,24($fp)
	lw	$v0,24($fp)
	beq	$v0,$zero,$L24
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	b	$L23
$L24:
	la	$a0,__sF+176
	la	$a1,$LC12
	lw	$a2,globalArgs+4
	la	$t9,fprintf
	jal	$ra,$t9
	sw	$zero,32($fp)
	b	$L21
$L23:
	lbu	$v0,globalArgs+3
	beq	$v0,$zero,$L26
	la	$a0,__sF+176
	la	$a1,$LC13
	la	$t9,fprintf
	jal	$ra,$t9
	sw	$zero,globalArgs+8
	li	$v0,1			# 0x1
	sw	$v0,32($fp)
	b	$L21
$L26:
	lw	$a0,globalArgs+8
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$v0,28($fp)
	beq	$v0,$zero,$L27
	la	$a0,__sF+176
	la	$a1,$LC14
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
$L27:
	lw	$a0,globalArgs+8
	la	$a1,$LC15
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$v0,28($fp)
	bne	$v0,$zero,$L28
	la	$a0,__sF+176
	la	$a1,$LC16
	lw	$a2,globalArgs+8
	la	$t9,fprintf
	jal	$ra,$t9
	sw	$zero,32($fp)
	b	$L21
$L28:
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
	li	$v0,1			# 0x1
	sw	$v0,32($fp)
$L21:
	lw	$v0,32($fp)
	move	$sp,$fp
	lw	$ra,48($sp)
	lw	$fp,44($sp)
	addu	$sp,$sp,56
	j	$ra
	.end	validate_arguments
	.size	validate_arguments, .-validate_arguments
	.rdata
	.align	2
$LC17:
	.ascii	"stdout.temp\000"
	.align	2
$LC18:
	.ascii	"%s\000"
	.align	2
$LC19:
	.ascii	"\n"
	.ascii	"--- Error on output. There was a problem while writing o"
	.ascii	"n output file.\n\000"
	.align	2
$LC20:
	.ascii	"\n"
	.ascii	"--- Text conversion result:\n\000"
	.align	2
$LC21:
	.ascii	"%c\000"
	.align	2
$LC22:
	.ascii	"\n"
	.ascii	"--- Text encoded successfully. ---\n\000"
	.text
	.align	2
	.globl	txt_to_bits
	.ent	txt_to_bits
txt_to_bits:
	.frame	$fp,96,$ra		# vars= 56, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,96
	.cprestore 16
	sw	$ra,88($sp)
	sw	$fp,84($sp)
	sw	$gp,80($sp)
	move	$fp,$sp
	sw	$a0,96($fp)
	sw	$a1,100($fp)
	lw	$v0,96($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sb	$v0,36($fp)
	lw	$v0,100($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sb	$v0,37($fp)
	sb	$zero,73($fp)
	lbu	$v0,36($fp)
	beq	$v0,$zero,$L31
	lbu	$v0,37($fp)
	beq	$v0,$zero,$L31
	li	$v0,1			# 0x1
	sb	$v0,73($fp)
$L31:
	lbu	$v0,73($fp)
	sb	$v0,38($fp)
	lbu	$v0,36($fp)
	beq	$v0,$zero,$L32
	la	$v0,__sF
	sw	$v0,24($fp)
	b	$L33
$L32:
	lw	$a0,96($fp)
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,24($fp)
$L33:
	lbu	$v0,37($fp)
	beq	$v0,$zero,$L34
	la	$v0,__sF+88
	sw	$v0,28($fp)
	b	$L35
$L34:
	lw	$a0,100($fp)
	la	$a1,$LC15
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,28($fp)
$L35:
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L36
	la	$a0,$LC17
	la	$a1,$LC15
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,32($fp)
$L36:
	sw	$zero,40($fp)
$L37:
	lw	$a0,24($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sw	$v0,40($fp)
	lw	$v1,40($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L39
	b	$L38
$L39:
	sw	$zero,44($fp)
$L40:
	lw	$v0,44($fp)
	slt	$v0,$v0,8
	bne	$v0,$zero,$L43
	b	$L41
$L43:
	li	$v1,7			# 0x7
	lw	$v0,44($fp)
	subu	$v1,$v1,$v0
	li	$v0,1			# 0x1
	sll	$v0,$v0,$v1
	sw	$v0,48($fp)
	lw	$v1,40($fp)
	lw	$v0,48($fp)
	slt	$v0,$v1,$v0
	bne	$v0,$zero,$L44
	lw	$v1,40($fp)
	lw	$v0,48($fp)
	subu	$v0,$v1,$v0
	sw	$v0,40($fp)
	addu	$v1,$fp,56
	lw	$v0,44($fp)
	addu	$v1,$v1,$v0
	li	$v0,49			# 0x31
	sb	$v0,0($v1)
	b	$L42
$L44:
	addu	$v1,$fp,56
	lw	$v0,44($fp)
	addu	$v1,$v1,$v0
	li	$v0,48			# 0x30
	sb	$v0,0($v1)
$L42:
	lw	$v0,44($fp)
	addu	$v0,$v0,1
	sw	$v0,44($fp)
	b	$L40
$L41:
	sb	$zero,64($fp)
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L46
	addu	$v0,$fp,56
	lw	$a0,32($fp)
	la	$a1,$LC18
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L37
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L46:
	addu	$v0,$fp,56
	lw	$a0,28($fp)
	la	$a1,$LC18
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L37
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L38:
	lw	$a0,24($fp)
	la	$t9,check_reading_error
	jal	$ra,$t9
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L50
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$v0,32($fp)
	bne	$v0,$zero,$L51
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L51:
	la	$a0,__sF+176
	la	$a1,$LC20
	la	$t9,fprintf
	jal	$ra,$t9
$L52:
	lw	$a0,32($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sb	$v0,72($fp)
	lbu	$v0,72($fp)
	sll	$v0,$v0,24
	sra	$v1,$v0,24
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L54
	b	$L50
$L54:
	lb	$v0,72($fp)
	lw	$a0,28($fp)
	la	$a1,$LC21
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L52
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L50:
	lw	$a0,24($fp)
	la	$t9,check_reading_error
	jal	$ra,$t9
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L56
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$t9,remove
	jal	$ra,$t9
$L56:
	la	$a0,__sF+176
	la	$a1,$LC22
	la	$t9,fprintf
	jal	$ra,$t9
	move	$v0,$zero
	move	$sp,$fp
	lw	$ra,88($sp)
	lw	$fp,84($sp)
	addu	$sp,$sp,96
	j	$ra
	.end	txt_to_bits
	.size	txt_to_bits, .-txt_to_bits
	.rdata
	.align	2
$LC23:
	.ascii	"\n"
	.ascii	"INPUT_ERROR: Binary input file should only contain 1's a"
	.ascii	"nd 0's.\n\000"
	.align	2
$LC24:
	.ascii	"\n"
	.ascii	"INPUT_ERROR: Binary input file has not an entire amount "
	.ascii	"of bytes.\n\000"
	.align	2
$LC25:
	.ascii	"\n"
	.ascii	"--- Binary conversion result:\n\000"
	.align	2
$LC26:
	.ascii	"\n"
	.ascii	"--- Binary text decoded successfully. ---\n\000"
	.text
	.align	2
	.globl	bits_to_txt
	.ent	bits_to_txt
bits_to_txt:
	.frame	$fp,80,$ra		# vars= 40, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,80
	.cprestore 16
	sw	$ra,72($sp)
	sw	$fp,68($sp)
	sw	$gp,64($sp)
	move	$fp,$sp
	sw	$a0,80($fp)
	sw	$a1,84($fp)
	lw	$v0,80($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sb	$v0,36($fp)
	lw	$v0,84($fp)
	xori	$v0,$v0,0x0
	sltu	$v0,$v0,1
	sb	$v0,37($fp)
	sb	$zero,57($fp)
	lbu	$v0,36($fp)
	beq	$v0,$zero,$L58
	lbu	$v0,37($fp)
	beq	$v0,$zero,$L58
	li	$v0,1			# 0x1
	sb	$v0,57($fp)
$L58:
	lbu	$v0,57($fp)
	sb	$v0,38($fp)
	lbu	$v0,36($fp)
	beq	$v0,$zero,$L59
	la	$v0,__sF
	sw	$v0,24($fp)
	b	$L60
$L59:
	lw	$a0,80($fp)
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,24($fp)
$L60:
	lbu	$v0,37($fp)
	beq	$v0,$zero,$L61
	la	$v0,__sF+88
	sw	$v0,28($fp)
	b	$L62
$L61:
	lw	$a0,84($fp)
	la	$a1,$LC15
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,28($fp)
$L62:
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L63
	la	$a0,$LC17
	la	$a1,$LC15
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,32($fp)
$L63:
	sw	$zero,40($fp)
	sw	$zero,44($fp)
$L64:
	lw	$a0,24($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sw	$v0,48($fp)
	lw	$v1,48($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L66
	b	$L65
$L66:
	lw	$v1,48($fp)
	li	$v0,48			# 0x30
	beq	$v1,$v0,$L67
	lw	$v1,48($fp)
	li	$v0,49			# 0x31
	beq	$v1,$v0,$L67
	lw	$v1,48($fp)
	li	$v0,32			# 0x20
	beq	$v1,$v0,$L64
	lw	$v1,48($fp)
	li	$v0,10			# 0xa
	beq	$v1,$v0,$L64
	la	$a0,__sF+176
	la	$a1,$LC23
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,84($fp)
	la	$t9,remove
	jal	$ra,$t9
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L70
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$t9,remove
	jal	$ra,$t9
$L70:
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L67:
	lw	$v0,44($fp)
	addu	$v0,$v0,1
	sw	$v0,44($fp)
	lw	$v0,48($fp)
	addu	$v0,$v0,-48
	sw	$v0,52($fp)
	li	$v1,8			# 0x8
	lw	$v0,44($fp)
	subu	$v1,$v1,$v0
	lw	$v0,52($fp)
	sll	$v1,$v0,$v1
	lw	$v0,40($fp)
	addu	$v0,$v0,$v1
	sw	$v0,40($fp)
	lw	$v1,44($fp)
	li	$v0,8			# 0x8
	bne	$v1,$v0,$L64
	sw	$zero,44($fp)
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L72
	lw	$a0,32($fp)
	la	$a1,$LC21
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L74
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L72:
	lw	$a0,28($fp)
	la	$a1,$LC21
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L74
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L74:
	sw	$zero,40($fp)
	b	$L64
$L65:
	lw	$a0,24($fp)
	la	$t9,check_reading_error
	jal	$ra,$t9
	lw	$v0,44($fp)
	beq	$v0,$zero,$L76
	la	$a0,__sF+176
	la	$a1,$LC24
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,84($fp)
	la	$t9,remove
	jal	$ra,$t9
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L77
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$t9,remove
	jal	$ra,$t9
$L77:
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L76:
	lbu	$v0,38($fp)
	beq	$v0,$zero,$L78
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$a1,$LC11
	la	$t9,fopen
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$v0,32($fp)
	bne	$v0,$zero,$L79
	la	$a0,__sF+176
	la	$a1,$LC19
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L79:
	la	$a0,__sF+176
	la	$a1,$LC25
	la	$t9,fprintf
	jal	$ra,$t9
$L80:
	lw	$a0,32($fp)
	la	$t9,fgetc
	jal	$ra,$t9
	sb	$v0,56($fp)
	lbu	$v0,56($fp)
	sll	$v0,$v0,24
	sra	$v1,$v0,24
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L82
	b	$L81
$L82:
	lb	$v0,56($fp)
	lw	$a0,28($fp)
	la	$a1,$LC21
	move	$a2,$v0
	la	$t9,fprintf
	jal	$ra,$t9
	bgez	$v0,$L80
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L81:
	lw	$a0,32($fp)
	la	$t9,check_reading_error
	jal	$ra,$t9
	lw	$a0,32($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,$LC17
	la	$t9,remove
	jal	$ra,$t9
$L78:
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	lw	$a0,28($fp)
	la	$t9,fclose
	jal	$ra,$t9
	la	$a0,__sF+176
	la	$a1,$LC26
	la	$t9,fprintf
	jal	$ra,$t9
	move	$v0,$zero
	move	$sp,$fp
	lw	$ra,72($sp)
	lw	$fp,68($sp)
	addu	$sp,$sp,80
	j	$ra
	.end	bits_to_txt
	.size	bits_to_txt, .-bits_to_txt
	.rdata
	.align	2
$LC27:
	.ascii	"-\000"
	.align	2
$LC28:
	.ascii	"Using default-reverse action...\n\000"
	.align	2
$LC29:
	.ascii	"--- Text to Binary mode ---\n\000"
	.align	2
$LC30:
	.ascii	"--- Binary to Text mode ---\n\000"
	.align	2
$LC31:
	.ascii	"\n"
	.ascii	"Errors were encountered. Program is finished.\n\000"
	.text
	.align	2
	.globl	main
	.ent	main
main:
	.frame	$fp,64,$ra		# vars= 16, regs= 3/0, args= 24, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,64
	.cprestore 24
	sw	$ra,56($sp)
	sw	$fp,52($sp)
	sw	$gp,48($sp)
	move	$fp,$sp
	sw	$a0,64($fp)
	sw	$a1,68($fp)
	sb	$zero,globalArgs
	sb	$zero,globalArgs+1
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+2
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+3
	sw	$zero,globalArgs+4
	sw	$zero,globalArgs+8
	sw	$zero,32($fp)
	sw	$zero,36($fp)
	sw	$zero,opterr
	addu	$v0,$fp,36
	sw	$v0,16($sp)
	lw	$a0,64($fp)
	lw	$a1,68($fp)
	lw	$a2,optString
	la	$a3,longOpts
	la	$t9,getopt_long
	jal	$ra,$t9
	sw	$v0,32($fp)
$L85:
	lw	$v1,32($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L87
	b	$L86
$L87:
	lw	$v0,32($fp)
	addu	$v0,$v0,-63
	sw	$v0,44($fp)
	lw	$v1,44($fp)
	sltu	$v0,$v1,52
	beq	$v0,$zero,$L88
	lw	$v0,44($fp)
	sll	$v1,$v0,2
	la	$v0,$L101
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	.cpadd	$v0
	j	$v0
	.rdata
	.align	2
$L101:
	.gpword	$L99
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L97
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L89
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L99
	.gpword	$L91
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L88
	.gpword	$L94
	.gpword	$L88
	.gpword	$L88
	.gpword	$L90
	.text
$L89:
	li	$v0,1			# 0x1
	sb	$v0,globalArgs
	b	$L88
$L90:
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+1
	b	$L88
$L91:
	lw	$a0,optarg
	la	$a1,$LC27
	la	$t9,strcmp
	jal	$ra,$t9
	bne	$v0,$zero,$L92
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+2
	b	$L88
$L92:
	lw	$v0,optarg
	sw	$v0,globalArgs+4
	sb	$zero,globalArgs+2
	b	$L88
$L94:
	lw	$a0,optarg
	la	$a1,$LC27
	la	$t9,strcmp
	jal	$ra,$t9
	bne	$v0,$zero,$L95
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+3
	b	$L88
$L95:
	lw	$v0,optarg
	sw	$v0,globalArgs+8
	sb	$zero,globalArgs+3
	b	$L88
$L97:
	la	$t9,display_version
	jal	$ra,$t9
	b	$L88
$L99:
	la	$t9,display_usage
	jal	$ra,$t9
$L88:
	addu	$v0,$fp,36
	sw	$v0,16($sp)
	lw	$a0,64($fp)
	lw	$a1,68($fp)
	lw	$a2,optString
	la	$a3,longOpts
	la	$t9,getopt_long
	jal	$ra,$t9
	sw	$v0,32($fp)
	b	$L85
$L86:
	lbu	$v0,globalArgs+1
	bne	$v0,$zero,$L102
	lbu	$v0,globalArgs
	bne	$v0,$zero,$L102
	la	$a0,__sF+176
	la	$a1,$LC28
	la	$t9,fprintf
	jal	$ra,$t9
	li	$v0,1			# 0x1
	sb	$v0,globalArgs+1
$L102:
	lbu	$v0,globalArgs
	beq	$v0,$zero,$L103
	la	$a0,__sF+176
	la	$a1,$LC29
	la	$t9,fprintf
	jal	$ra,$t9
$L103:
	lbu	$v0,globalArgs+1
	beq	$v0,$zero,$L104
	la	$a0,__sF+176
	la	$a1,$LC30
	la	$t9,fprintf
	jal	$ra,$t9
$L104:
	la	$t9,validate_arguments
	jal	$ra,$t9
	bne	$v0,$zero,$L105
	la	$a0,__sF+176
	la	$a1,$LC31
	la	$t9,fprintf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L105:
	lbu	$v0,globalArgs
	beq	$v0,$zero,$L106
	lw	$a0,globalArgs+4
	lw	$a1,globalArgs+8
	la	$t9,txt_to_bits
	jal	$ra,$t9
	sw	$v0,40($fp)
	b	$L84
$L106:
	lw	$a0,globalArgs+4
	lw	$a1,globalArgs+8
	la	$t9,bits_to_txt
	jal	$ra,$t9
	sw	$v0,40($fp)
$L84:
	lw	$v0,40($fp)
	move	$sp,$fp
	lw	$ra,56($sp)
	lw	$fp,52($sp)
	addu	$sp,$sp,64
	j	$ra
	.end	main
	.size	main, .-main

	.comm	globalArgs,12
	.ident	"GCC: (GNU) 3.3.3 (NetBSD nb3 20040520)"
